package com.icongyou.enterprise.talent_marking.mapper;

import com.icongyou.enterprise.talent_marking.entity.vo.SubmissionInfo;
import com.icongyou.enterprise.talent_marking.entity.vo.HighPotentialSubmissions;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface HighPotentialSubmissionMapper {
    HighPotentialSubmissions selectByUserAndSubmission(@Param("userId") String userId,
                                                       @Param("submissionId") String submissionId);

    void insert(HighPotentialSubmissions mark);

    void deleteByUserAndSubmission(@Param("userId") String userId,
                                   @Param("submissionId") String submissionId);

    void updateById(HighPotentialSubmissions mark);

    List<HighPotentialSubmissions> selectByUserId(@Param("userId") String userId);

    List<SubmissionInfo> selectSubmissionInfoByUserId(@Param("userId") String userId);
}
